{% extends 'base.html' %}
{% block bar %}
<div class="col-md-9" style=  "justify-content: flex-end;">
            <h1 class="page-header">客户管理页面</h1>
        <div class="panel panel-primary">
                <!-- Default panel contents -->
        <div class="panel-heading">客户基本信息修改<i class="fa fa-thumb-tack pull-right"></i></div>
            <div class="panel-body">
                <div class="row" style="margin-bottom: 15px">
                    <div class="col-md-4">
                            <div class="input-group">
                            </div><!-
                        </div><!- /input-group -->
                        </div><!-- /.col-md-4 -->
            </div>
        </div>
</div>
{% endblock %}


{% block main %}
     <form action="" method="post">
    {% csrf_token %}
      <p>
         <input type="hidden" name="id" value="{{ customer_obj.id }}">

     <p>
            &nbsp订单日期：<input id="order_time" name="order_time" type="date" style="width:200px; " value="{{ customer_obj.order_time }}" />
        </p>
      <p>
            &nbsp订&nbsp&nbsp单&nbsp&nbsp号：<input type="text" name="order_num" style="width:200px;" value="{{ customer_obj.order_num }}">
        </p>
        <p>
            &nbsp客户姓名：<input type="text" name="customer_name" style="width:200px;" value="{{ customer_obj.customer_name }}">
        </p>
        <p>
            &nbsp客户电话：<input type="text" name="customer_phone" style="width:200px;" value="{{ customer_obj.customer_phone }}">
        </p>
        <p>
            &nbsp地&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp址：<input type="text" name="customer_adr" style="width:200px;" value="{{ customer_obj.customer_adr }}">
        </p>
        <p>
            &nbsp成交金额：<input type="text" name="deal_money" style="width:200px;" value="{{ customer_obj.deal_money }}">
        </p>
        <p>
            &nbsp定&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp金：<input type="text" name="deposit_money" style="width:200px;" value="{{ customer_obj.deposit_money }}">
        </p>

        <p>
            {% if customer_obj.ruler_flag == 0 %}
            &nbsp量&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp尺：<label><input type="radio" name="ruler_flag" value="0" checked>未量尺</label> &nbsp&nbsp&nbsp&nbsp<label><input type="radio" name="ruler_flag" value="1">已量尺</label>
            {% else %}
            &nbsp量&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp尺：<label><input type="radio" name="ruler_flag" value="0">未量尺</label> &nbsp&nbsp&nbsp&nbsp<label><input type="radio" name="ruler_flag" value="1" checked>已量尺</label>
            {% endif %}
        </p>

        <p>
            {% if customer_obj.delivery_flag == 0 %}
            &nbsp送&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp货：<label><input type="radio" name="delivery_flag" value="0" checked>未送货</label> &nbsp&nbsp&nbsp&nbsp<label><input type="radio" name="delivery_flag" value="1">已送货</label>
            {% else %}
            &nbsp送&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp货：<label><input type="radio" name="delivery_flag" value="0">未送货</label> &nbsp&nbsp&nbsp&nbsp<label><input type="radio" name="delivery_flag" value="1" checked>已送货</label>
            {% endif %}
        </p>
        <p>
            &nbsp送货时间：<input type="text" name="delivery_time" style="width:200px;" value="{{ customer_obj.delivery_time }}">
        </p>
        <p>
            {% if customer_obj.clean_status == 0 %}
            &nbsp结清状态：<label><input type="radio" name="clean_status" value="0" checked>未结清</label> &nbsp&nbsp&nbsp&nbsp <label><input type="radio" name="clean_status" value="1">已结清</label>
            {% else %}
            &nbsp结清状态：<label><input type="radio" name="clean_status" value="0">未结清</label> &nbsp&nbsp&nbsp&nbsp <label><input type="radio" name="clean_status" value="1" checked>已结清</label>
            {% endif %}
        </p>

        <p>
            &nbsp备&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp注：<input type="text" name="remarks" style="width:200px;" value="{{ customer_obj.remarks }}">
        </p>
        <p>
            &nbsp&nbsp<button type="submit" class="btn">提交</button>
        </p>

</form>


{% endblock %}
